package com.neuedu.api.wrapclass;

/**
 * @author 金山
 * 项目：javase
 * site: https://blog.fulfill.com.cn
 * 描述
 * @data 2024/10/229:44
 */
public class MyWrapClass {


    public static void main(String[] args) {

        // Integer integer = new Integer(10);

        //1.5 之后 引入的 自动装箱 和拆箱
        //自动的装箱
        Integer intObj1 = 10;
        Integer intObj2 = 10;


        //自动拆箱
        Double dbObject1 = new Double(3.1431);
        double simpleDouble = dbObject1;



        Integer intObject3 = -128;  //  -128 --  127 使用常量区的值

        Integer intObject4 = -128;
        Integer intObject5 = new Integer(50);
        Integer intObject6 = new Integer(50);


        System.out.println("(intObject3 == intObject4) = " + (intObject3 == intObject4));
        System.out.println("(intObject5 == intObject6) = " + (intObject5 == intObject6));


        int a = 100;

    }
}
